package site.zhanjingbo.shop.service;

import java.util.List;

import site.zhanjingbo.shop.meta.Product;
import site.zhanjingbo.shop.meta.User;

public interface ProductService {
	public Product getProductById(int id);

	public List<Product> getProducts();

	public List<Product> getProductsByUser(User user);

	public List<Product> getProductsNoUser(User user);

	public boolean addProduct(Product product);

	public boolean updateProduct(Product product);

	public boolean deleteProduct(int id);
}
